@extends('admin.container')

@section('c-head')
<script type="text/javascript">
    var PAGE_DATA = {
        REST_API: {
            new_adminArr_url: "{{ route('admin.role.create') }}", // 新增管理组
            get_adminArr_list_url: "{{ route('admin.role.index') }}", // 获取管理员组列表数据,搜索
        }
    };
</script>
@stop

@section('c-body')
    <div class="comm-title">
        <span class="title-msg">管理员组管理</span>
    </div>
    <div class="comm-body">
        <div class="tab-body current1">
            <div class="supplyList-screen mt20">
                <div class="supplyList-screen-main">
                    <div class="sl-screen-box">
                        <div class="am-btn-group" style="margin-top: 22px;">
                            <a type="button" class="am-btn am-btn-success am-btn-sm " id="add_admin">
                                <span style="width:100px;display:block;">添加管理组</span>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 表单列表 -->
            <table class="am-table am-table-striped am-table-hover am-table-centered brand-manage-tbl shopAdmin-list mt20">
                <thead>
                <tr>
                    <th style="width:5%">
                        <span style="visibility:hidden;">1</span>
                    </th>
                    <th>ID</th>
                    <th>管理员组名称</th>
                    <th style="width: 15%">操作</th>
                </tr>
                </thead>
                <tbody class="shopAdmin-list-body" id="admin-list-context">
                </tbody>
            </table>
            <div class="tool-bar-bottom clearfix">
                <div class="unit">
                    <input id="sel-all-chk" type="checkbox" class="mid" style="position: relative; top:13px;" />
                </div>
                <div class="unit">
                    <label for="sel-all-chk" style="cursor:pointer;font-weight:300;">全选</label>
                </div>
                <div class="unit">
                    <button type="button" id="del-multi-btn" class="am-btn am-btn-default am-btn-xs ml10" style="position: relative;float:left;top:5px;">删除</button>
                </div>
            </div>
            <div id="comm-paging" class="admin-paging" current-page="1"></div>
        </div>
    </div>
    <script type="text/template" id="adminListTemp">
        <%_.each(obj, function(item){%>
        <tr>
            <td class="sel-chk">
                <input type="checkbox" id="<%=item.id%>" />
            </td>
            <td style="max-width: 80px;">
                <%=item.id%>
            </td>
            <td style="max-width: 80px;">
                <%=item.username%>
            </td>
            <td style="width: 15%">
                <div class="operate-btns-2 clearfix" style="width: 150px">
                    <a id="" type="button" class="edit-brand-btn am-btn am-btn-secondary am-btn-xs" style="float:left;" href="<%=item.editorurl%>">编辑权限</a>
                    <button id="" type="button" class=" am-btn am-btn-default am-btn-xs del-admin-btn" style="float:left; margin-left: 10px;" href="<%=item.deleurl%>">删除组</button>
                </div>
            </td>
        </tr>
        <%})%>
    </script>
    <script src="/assets/b2b/admin/js/libs/jquery.paging.min.js">
    </script>
    <script src="/assets/b2b/admin/js/libs/underscore-min.js">
    </script>
    <script src="/assets/b2b/admin/js/libs/jquery-ui.min.js">
    </script>
    <script src="/assets/b2b/admin/js/pages/32.js"></script>
@stop